package com.ricchieri.manage.bean;

import com.ricchieri.common.BusinessSettings;
import com.ricchieri.util.FacesUtil;

public abstract class CommonOperationManageBean extends GenericManageBean {
	private static final long serialVersionUID = -224325480694316553L;

	public String obtainOperationType(String operationType) {
		if (operationType.equals(BusinessSettings.OPERATION_PAID)) {
			return FacesUtil.getMessage("operationPaid");
		} else if (operationType.equals(BusinessSettings.OPERATION_RESERVATION)) {
			return FacesUtil.getMessage("operationReservation");
		} else if (operationType.equals(BusinessSettings.OPERATION_CANCELATION)) {
			return FacesUtil.getMessage("operationCancelation");
		} else if (operationType.equals(BusinessSettings.OPERATION_ADVANCED)) {
			return FacesUtil.getMessage("operationAdvanced");
		}
	
		return null;	
	}
}